package com.koron.order.maintain.mapper;

import com.koron.order.maintain.bean.entity.MaintainItemParamsPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (MaintainItemParams)表数据库访问层
 *
 * @author zhouj
 * @since 2021-09-23 16:00:00
 */
public interface MaintainItemParamsMapper {

    MaintainItemParamsPo queryById(String id);

    List<MaintainItemParamsPo> queryList(MaintainItemParamsPo maintainItemParams);

    int insert(MaintainItemParamsPo maintainItemParams);

    int update(MaintainItemParamsPo maintainItemParams);

    int deleteById(String id);

    int insertBatch(@Param("list") List<MaintainItemParamsPo> maintainItemParams);

    int insertOrUpdateBatch(@Param("list") List<MaintainItemParamsPo> maintainItemParams);

    int deleteByItemId(String itemId);

    int deleteByMaintainEquipmentId(String maintainEquipId);

    int deleteByMaintainId(String maintainId);

}